<template>
	<view class="">
		<view class="mt-20">
			<my-cell-group :title="type==='1'?'项目毛利':'项目折扣'" icon="icon-xiangmu1" :url="`/pages/grossProfit/projectList?type=${type}`" />
			<my-cell-group :title="type==='1'?'卡项毛利':'卡项折扣'" icon="icon-a-37-kapian" :url="`/pages/grossProfit/cardItemList?type=${type}`" />
			<my-cell-group :title="type==='1'?'商品毛利':'商品折扣'" icon="icon-dianpu" :url="`/pages/grossProfit/productList?type=${type}`" />
		</view>
	</view>
</template>

<script>
	import myCellGroup from '@/components/my-cell-group/index.vue'
	export default {
		components:{ myCellGroup },
		data(){
			return {
				type: '1', // 1 毛利设置 2 联创分红设置
			}
		},
		onLoad(opt) {
			this.type = opt.type
			if(opt.type === '2'){
				uni.setNavigationBarTitle({
					title:'联创折扣'
				})
			}
		}
	}
</script>

<style>
</style>